//
//  ViewController.m
//  Demo0029
//
//  Created by zTercel on 13-3-11.
//  Copyright (c) 2013年 zTercel. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
    
@end

@implementation ViewController
@synthesize display;
-(IBAction)buttonPress:(id)sender
{
    NSString* lableName = @"Hello World";
    if ([lableName isEqualToString:[display text]]) {
        [display setText:@"Hello iPhone"];
    } else {
        [display setText:@"Hello World"];
    }
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
